home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / rpclib / pmap_prot.c < prev    next >
C/C++ Source or Header  |  1994-03-09  |  2KB  |  67 lines

  1. /*
  2.  * $Id: pmap_prot.c,v 1.2 1993/11/10 02:12:43 jraja Exp $
  3.  *
  4.  * $Log: pmap_prot.c,v $
  5.  * Revision 1.2  1993/11/10  02:12:43  jraja
  6.  * Fixed includes (added the sys/param.h).
  7.  *
  8.  */
  9. /* @(#)pmap_prot.c    2.1 88/07/29 4.0 RPCSRC */
  10. /*
  11.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  12.  * unrestricted use provided that this legend is included on all tape
  13.  * media and as a part of the software program in whole or part.  Users
  14.  * may copy or modify Sun RPC without charge, but are not authorized
  15.  * to license or distribute it to anyone else except as part of a product or
  16.  * program developed by the user.
  17.  * 
  18.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  19.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  20.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  21.  * 
  22.  * Sun RPC is provided with no support and without any obligation on the
  23.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  24.  * modification or enhancement.
  25.  * 
  26.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  27.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  28.  * OR ANY PART THEREOF.
  29.  * 
  30.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  31.  * or profits or other special, indirect and consequential damages, even if
  32.  * Sun has been advised of the possibility of such damages.
  33.  * 
  34.  * Sun Microsystems, Inc.
  35.  * 2550 Garcia Avenue
  36.  * Mountain View, California  94043
  37.  */
  38. #if !defined(lint) && defined(SCCSIDS)
  39. static char sccsid[] = "@(#)pmap_prot.c 1.17 87/08/11 Copyr 1984 Sun Micro";
  40. #endif
  41.  
  42. /*
  43.  * pmap_prot.c
  44.  * Protocol for the local binder service, or pmap.
  45.  *
  46.  * Copyright (C) 1984, Sun Microsystems, Inc.
  47.  */
  48.  
  49. #include <sys/param.h>
  50. #include <rpc/types.h>
  51. #include <rpc/xdr.h>
  52. #include <rpc/pmap_prot.h>
  53.  
  54.  
  55. bool_t XDRFUN
  56. xdr_pmap(xdrs, regs)
  57.     XDR *xdrs;
  58.     struct pmap *regs;
  59. {
  60.  
  61.     if (xdr_u_long(xdrs, ®s->pm_prog) && 
  62.         xdr_u_long(xdrs, ®s->pm_vers) && 
  63.         xdr_u_long(xdrs, ®s->pm_prot))
  64.         return (xdr_u_long(xdrs, ®s->pm_port));
  65.     return (FALSE);
  66. }
  67.